<!DOCTYPE html>
<style>
.outline {
  outline: auto;
}

.float {
  background: orange;
  float: right;
  width: 100px;
  height: 20px;
  margin-left: 24px;
}

.block {
  display: block;
  height: 20px;
  line-height: 20px;
  overflow: hidden;
}
</style>
<div>
  <span class="float outline"></span>
  <a class="outline">
    <span class="block">
      <span>X</span>
    </span>
  </a>
</div>
